package com.coder.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;


/**
 * @BelongsProject:coder_parent
 * @BelongsPackage:com.coder.search
 * @Author:linchong
 * @CreateTime:2019-01-05 19:48
 * @Description:
 */

@SpringBootApplication
public class SearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
